<?php

include_once("model/common.php");


$openid               = $_REQUEST['openid'];



$url = "http://yitong.zhihuitiangong.com/api/wechat_mp/send_message_model.php";





    echo "<br/><br/><br/><br/><br/><br/><br/><br/>当前用户".$openid."";

            $post_data = array(
                            "touser"=>$openid, //推送给谁,openid
                            //"touser"=>'oUaqG0dZdR4ITehiwDOLoCxcn49w', //推送给工作号
                            "template_id"=>"zvH8KjMX3lrQxKVROe8Oo41Y9XN_Hk4OCfUZ0IozWgs", //微信后台的模板信息id
                            "url"=>"http://oa.enpingshi.com/controlbase/employee/detail-statistic-report-weekly.php?openid=".$v['openid'], //
                            "data"=> array(
                                "first" => array(
                                    "value"=>"客户信息有变更，请查看",
                                    "color"=>"#173177"
                                ),
                                "keyword1"=>array(
                                    "value"=>date("Y-m-d"),//时间
                                    "color"=>"#173177"
                                ),

                                "keyword2"=>array(
                                    "value"=>"客户信息变更通知",
                                    "color"=>"#173177"
                                ),
                                "remark"=> array(
                                    "value"=>"请点击本通知跳转到【天宫系统】系统页面查看详情；",
                                    "color"=>"#173177"
                                ),
                            )
            );
			
			$sql_data = serialize($post_data);	
			$data['content'] = $sql_data;
			$re_back = send_wx_sms($url , $data);
			$re_back_arr = json_decode($re_back, true);
			
			echo $re_back;










?>

